@extends('layouts.console_header')

@section('title', '历史设置记录')

@section('resources')
    @parent
<style>
    .display{text-align: center;background-color: #fff;border-collapse:collapse;}
    .display th{padding: 20px 0;}
    .display #tbody_content{border-top: 1px solid #000;border-bottom: 1px solid #000;font-size: 14px;}
    .display #tbody_content tr:nth-child(2n+1){border-bottom: 1px solid #ddd;background-color: #f9f9f9;}
    .display #tbody_content tr:nth-child(2n){border-bottom: 1px solid #ddd;}
    .display #tbody_content tr td{padding: 10px 0;}
    .display #tbody_content tr td:nth-child(1){background-color: #f1f1f1;}
</style>
@endsection

@section('content')
<!--  html内容  -->
<section class="user_list">
	<div style="border-bottom: 2px solid #9955c6;overflow: hidden;">
		<p class="fz_14 account_title fl" style="border: none;"><span style="color: #7f7f7f;"><a href="/console/index">首页</a>>用户版运营><a href="/console/user/red/envelope">红包管理</a>></span><span class="co_violet">历史设置记录</span></p>
		<a onclick="history.go(-1);" href="#"><p class="fr tc back_btn">返回</p></a>
	</div>
	<table class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>序号</th>
                <th>设置时间</th>
                <th>平台占比</th>
                <th>代理商占比</th>
                <th>红包比例</th>
                <th>使用期限</th>
                <th>描述</th>
                <th>操作人</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th>序号</th>
                <th>设置时间</th>
                <th>平台占比</th>
                <th>代理商占比</th>
                <th>红包比例</th>
                <th>使用期限</th>
                <th>描述</th>
                <th>操作人</th>
            </tr>
        </tfoot>
        <tbody id="tbody_content">
            @if(count($lists) > 0)
                @foreach($lists as $list)
                    <tr>
                    @if(!isset($i))
                        <td>{{$i=1}}</td>
                    @else
                        <td>{{++$i}}</td>
                    @endif
                        <td>{{$list['created_at']}}</td>
                        <td>{{$list['hqratio']}}%</td>
                        <td>{{$list['agentratio']}}%</td>
                        <td>{{$list['ratio']}}%</td>
                        <td>{{$list['validdays']}}</td>
                        <td>{{$list['content']}}</td>
                        <td>{{$list['adminname']}}</td>
                    </tr>
                @endforeach
            @else
                <tr><td colspan="8">暂无数据</td></tr>
            @endif
        </tbody>
    </table>
</section>
@endsection

@section('scriptResources')
    @parent
    <script>
        
    </script>
@endsection